<?php
if (isset($loginPanel) && $loginPanel == true) {
    
} else {
    if ($authorized) {
        echo("<img src=\"/img/default_avatar.png\" width=\"64\" height=\"60\" class=\"avatar-img\" />");
        echo("<strong>" . $authorizedUser['username'] . "</strong>");
        echo("&nbsp;&nbsp;" . $this->Html->link("Wyloguj się", array('controller' => 'users', 'action' => 'logout')) . "");
    } else {
        echo $this->Form->create('User', array('action' => 'login'));
        echo $this->Form->input('username');
        echo $this->Form->input('password');
        echo $this->Form->end('Login');
    }
}
?>
